// 时间年月日时分秒格式:2020-12-12 20:20:20
export const dateTimeStringReg =
  /(((\d{4})-(0[13578]|1[02])-(0[1-9]|[12]\d|3[01]))|((\d{4})-(0[469]|11)-(0[1-9]|[12]\d|30))|((\d{4})-(02)-(0[1-9]|1\d|2[0-8]))|((\d{2}(0[48]|[2468][048]|[13579][26]))-(02)-(29))|(((0[48]|[2468][048]|[13579][26])00)-(02)-(29))) (([01]\d|2[0-3]):([0-5]\d):([0-5]\d))/;
// 最小金额为100元的
// export const minMoneyReg = /^[1-9]\d{2}(\.\d{2,2})?$/;
export const minMoneyReg = /^[1-9](\d+)?(\.\d{2,2})?$/;
// 时间年月日的正则:2020-12-12
export const dateStringReg =
  /(((\d{4})-(0[13578]|1[02])-(0[1-9]|[12]\d|3[01]))|((\d{4})-(0[469]|11)-(0[1-9]|[12]\d|30))|((\d{4})-(02)-(0[1-9]|1\d|2[0-8]))|((\d{2}(0[48]|[2468][048]|[13579][26]))-(02)-(29))|(((0[48]|[2468][048]|[13579][26])00)-(02)-(29)))/;

// uuid去除-的正则
export const uuidStringReg = /^[0-9a-f]{8}([0-9a-f]{4}){3}[0-9a-f]{12}$/;

/**身份证号码正则 */
export const idCardReg =
  /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;

/**最新手机号码正则 */
export const mobileReg =
  /^(13[0-9]|14[56789]|15[0-3,5-9]|16[67]|17[1235678]|18[0-9]|19[135689])\d{8}$/;

// 用户名
export const usernameReg = /^[a-zA-Z.0-9]{4,20}$/;
